#include <iostream>
#include <fstream>
#include <string>
#include "head.hpp"
using namespace std;

int main()
{
    string buf = "UTF8字符串";

    wstring tmp;
    tmp = str_utf8_to_unicode(buf);

    ofstream ofs("wout.txt",ios::out | ios::binary);
    ofs<<buf;

    wcout << tmp << endl;

    system("pause");
    ofs.close();
    return 0;
}